import service from "@/utils/service";
import type { UserInfoModel } from "./index.d";
import type {
  BaseResponse,
  listResponse,
  optionType,
  paramsType,
} from "../index.d";
import type { optionsType } from "../base";
export const userInfoApi = (): Promise<
  BaseResponse<UserInfoModel.userInfoResponse>
> => {
  return service({
    url: "/userInfo",
    method: "POST",
  });
};
export const userListApi = (
  params?: paramsType
): Promise<BaseResponse<listResponse<UserInfoModel.userListResponse>>> => {
  return service({
    url: "/user/list",
    method: "GET",
    params,
  });
};
export const userGenderOptionsApi = (
  params?: paramsType
): Promise<BaseResponse<optionsType[]>> => {
  return service({
    url: "/user/gender",
    method: "GET",
    params,
  });
};
